package com.mtw.bbs.bbsUser.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色权限
 *
 * @author mo
 * @email mo
 * @date 2023-10-18 15:44:13
 */
@Data
@TableName("os_role_resource")
@ApiModel("角色权限")
public class RoleResource implements Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	@ApiModelProperty(value = "主键")
	private String id;
	/**
	 * 权限id
	 */
	@ApiModelProperty(value = "权限id")
	private String resourceId;
	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id")
	private String roleId;


	public RoleResource(){}

	public RoleResource(String resourceId, String roleId){
		this.resourceId = resourceId;
		this.roleId = roleId;
	}

}
